package com.zmn.oms.persistence.interfaces.channelprepay;

import com.zmn.oms.model.entity.channelprepay.OrderChannelPrepay;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 类描述：
 *
 * @author wangxiaokun
 * @since 2022/04/26 21:14
 */
public interface OrderChannelPrepayDao {

    /**
     * 根据工单号查询预付款明细
     * @param orderId
     * @param workId
     * @return
     */
    List<OrderChannelPrepay> listOrderChannelPrepayByOrderIdAndWorkId(@Param("orderId") Long orderId, @Param("workId") Long workId);

    /**
     * 根据订单号集合查询
     * @param workIdList
     * @return
     */
    List<OrderChannelPrepay> listOrderChannelPrepayByWorkIdList(@Param("workIdList") List<Long> workIdList);

    /**
     * 批量插入
     * @param channelPrepayList
     * @return
     */
    int insertAll(@Param("channelPrepayList") List<OrderChannelPrepay> channelPrepayList);

    /**
     * 删除
     * @param orderId
     * @return
     */
    int deleteByOrderId(Long orderId);
}
